<?php echo $this->Session->flash(); ?>
<h1 align="center">FAMILIARES  <?php echo $nombre; ?></h1>

<table  id="tabla" class="tabla" >
    <thead>
        <tr style="background: #6b8c7f">
            <th>Proyecto</th>
            <th>Identificación</th>
            <th>Nombres</th>
            <th>1er Apellido</th>
            <th>2do Apellido</th>
            <th colspan="2">Opciones</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($relatives as $rel): ?>
            <tr style="background: #daf6eb">
                <td><?php echo $cod ?></td>
                <td><?php echo $rel['Relative']['nro_ident'] ?></td>
                <td><?php echo $rel['Relative']['nombres'] ?></td>
                <td><?php echo $rel['Relative']['1er_apellido'] ?></td>
                <td><?php echo $rel['Relative']['2do_apellido'] ?></td>
                <td><?php echo $ajax->link("Revisiones", array('controller' => 'relativeReviews', "action" => "index", $rel['Relative']['id'], $candidate_id), array('update' => 'content', 'class' => 'actions', 'complete' => 'cargar()', 'indicator' => 'loading')) ?></td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<br>
<br>
<br>
<table style="border: 1px solid" width="50%" align="center">
    <tbody>
        <tr>
            <td align="center"><?php echo $ajax->link("Agregar Familiar", array('controller' => 'Relatives', "action" => "add", $candidate_id, 2), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading')) ?></td>
            <td align="center">
                <?php
                if ($conteo == 0)
                    echo $ajax->link("Agregar Conyuge", array('controller' => 'Candidates', "action" => "add_conyugue", $candidate_id, 2), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'))
                    ?>
            </td>
        </tr>
    </tbody>
</table>